<?php

declare(strict_types=1);
/**
 * @copyright 深圳市易果网络科技有限公司
 * @version 1.0.0
 * @link https://dayiguo.com
 */

namespace App\Request\Business\Business;

use App\Request\RequestAbstract;

/**
 * 更改入驻方式验证器
 *
 * @author 李想(928674263@qq.com)
 * @package App\Request\Business\Business
 */
    class ChangeBusinessInfoRequest extends RequestAbstract
{
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        return [
            'id' => 'required_without_all:name,description,science,forenoon_hours,afternoon_hours,hours_describe,tel,province_id,city_id,district_id,business_cover,tag,identity_code',
            'name' => 'required_without_all:id,description,science,forenoon_hours,afternoon_hours,hours_describe,tel,province_id,city_id,district_id,business_cover,tag,identity_code',
            'tel' => 'required_without_all:id,name,description,science,forenoon_hours,afternoon_hours,hours_describe,province_id,city_id,district_id,business_cover,tag,identity_code',
            'description' => 'required_without_all:id,name,tel,science,forenoon_hours,afternoon_hours,hours_describe,province_id,city_id,district_id,business_cover,tag,identity_code',
            'science' => 'required_without_all:id,name,tel,description,forenoon_hours,afternoon_hours,hours_describe,province_id,city_id,district_id,business_cover,tag,identity_code',
            'forenoon_hours' => 'required_without_all:id,name,tel,description,science,afternoon_hours,hours_describe,province_id,city_id,district_id,business_cover,tag,identity_code',
            'afternoon_hours' => 'required_without_all:id,name,tel,description,science,forenoon_hours,hours_describe,province_id,city_id,district_id,business_cover,tag,identity_code',
            'province_id' => 'required_without_all:id,name,tel,description,science,forenoon_hours,hours_describe,afternoon_hours,city_id,district_id,business_cover,tag,identity_code',
            'city_id' => 'required_without_all:id,name,tel,description,science,forenoon_hours,afternoon_hours,hours_describe,province_id,district_id,business_cover,tag,identity_code',
            'district_id' => 'required_without_all:id,name,tel,description,science,forenoon_hours,afternoon_hours,hours_describe,province_id,city_id,business_cover,tag,identity_code',
            'hours_describe' => 'required_without_all:id,name,tel,description,science,forenoon_hours,afternoon_hours,province_id,city_id,business_cover,tag,identity_code',
            'business_cover' => 'required_without_all:id,name,tel,description,science,forenoon_hours,afternoon_hours,province_id,city_id,hours_describe,tag,identity_code',
            'tag' =>   'required_without_all:id,name,tel,description,science,forenoon_hours,afternoon_hours,province_id,city_id,hours_describe,business_cover,identity_code',
            'identity_code' => 'required_without_all:id,name,tel,description,science,forenoon_hours,afternoon_hours,province_id,city_id,hours_describe,business_cover,tag',
        ];
    }
}